<!-- title -->
<div class="cen">
    <ul class="clearboth">
        <?php
        foreach ($this->aryCategoryDataView[$this->rootId] as $_k => $_v) :
            if (is_array($_v)) :
                $_tmpLink = App\Tools\UrlHelper::getTypeUrl($this->aryCategoryDataView, $_v['id_tree']);
                $_hasChild = App\Tools\Auxi::typeHasChild($this->aryCategoryDataView[$this->rootId][$_k]);
                $_cur = App\Tools\Auxi::compareSelect($_k, $this->parentId, 'cur');
                ?>
                <li <?= $_cur ?>><a href="<?= $_hasChild ? 'javascript:;' : $_tmpLink ?>"><?= $_v['category_name'] ?></a>
                <?php
                if ($_hasChild) :
                    ?>
                    <p>
                        <?php
                        foreach ($this->aryCategoryDataView[$this->rootId][$_k] as $_k3 => $_v3) :
                            if (is_array($_v3) && $_v3['language'] == $this->__LANGUAGE_ID__):
                                $_tmpLink2 = App\Tools\UrlHelper::getTypeUrl($this->aryCategoryDataView, $_v3['id_tree']);
                                ?>
                                <a href="<?= $_tmpLink2 ?>">
                                    <span>
                                        >&nbsp;
                                    </span>
                                    <?= $_v3['category_name'] ?>
                                </a>
                                <?php
                            endif;
                        endforeach;
                        ?>
                    </p>
                    <?php
                endif;
                ?>
                </li>
                <?php
            endif;
        endforeach;
        ?>
    </ul>
</div>